package com.lpit.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lpit.mapper.ArticleMapper;
import com.lpit.pojo.Article;
import com.lpit.result.ResponseResult;
import com.lpit.service.IssueArticleService;
import org.springframework.stereotype.Service;

/**
 * @author 石智星
 * @version 1.0
 * @date 2023/7/6 10:03
 */
@Service
public class IssueArticleServiceImpl extends ServiceImpl<ArticleMapper,Article> implements IssueArticleService {
    /**
     * 添加文章
     *
     * @return
     */
    @Override
    public ResponseResult add(Article article) {
        boolean save = this.save(article);
        return new ResponseResult(200,null,"添加成功");
    }
}
